import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('supplier.rectifyInform.rectifyInformOrder'),
    width: 'auto',
    prop: 'number',
    fixed: true
  },
  {
    label: i18n.t('supplier.rectifyInform.supplierCode'),
    width: 'auto',
    prop: 'supplierCode'
  },
  {
    label: i18n.t('supplier.rectifyInform.supplierName'),
    width: 'auto',
    prop: 'supplierName'
  },
  {
    label: i18n.t('supplier.rectifyInform.replyDate'),
    prop: 'replyDate',
    width: 180
  },
  {
    label: i18n.t('supplier.rectifyInform.createName'),
    prop: 'createName',
    width: 120
  },
  {
    label: i18n.t('supplier.rectifyInform.applyTime'),
    prop: 'createTime',
    width: 130
  },
  {
    label: i18n.t('supplier.rectifyInform.state'),
    width: 130,
    prop: 'state'
  }
]
export const actions = [
  {
    key: 'detail',
    text: i18n.t('common.detail'),
    permissions: 'srm:rectify:detail'
  },
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'srm:rectify:update'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'srm:rectify:delete',
    type: 'danger'
  },
  {
    key: 'confirm',
    text: '确认结果',
    permissions: 'srm:rectify:replayConfirm'
  },
  {
    key: 'audit',
    text: '审核方案',
    permissions: 'srm:rectify:replyResult'
  }
]
